import { Component, OnInit } from '@angular/core';
import { StoreService } from 'src/services/store.service';
import { UiService } from 'src/services/ui.service';

@Component({
  selector: 'app-panoramalistview',
  templateUrl: './panoramalistview.component.html',
  styleUrls: ['./panoramalistview.component.scss']
})
export class PanoramalistviewComponent implements OnInit {

  constructor(public ui: UiService, public store: StoreService) { }

  ngOnInit(): void {
  }
  select(item, t) {
    console.log(item);
    console.log(t);
    this.store.currentEntity = item
    if (t == 'panorama' || t === 'express')
      this.ui.openinfo(item.Name, t, item)
    else
      this.ui.openinfo(item.Id, t, item)
  }
  active(item) {
    console.log(item);
    this.ui.activePanel = item
  }
}
